import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  routes: [
    //mobile
    {
      path: '/',
      name: 'home',
      component: Home,
      children:[
        //首页
        {
          path: '/index',
          name: 'index',
          component: () => import('./views/index/index.vue')
        },
        //头条
        {
          path: '/headline',
          name: 'headline',
          component: () => import('./views/headline/headline.vue')
        },
        //视频
        {
          path: '/video',
          name: 'video',
          component: () => import('./views/video/video.vue')
        },
        //视频
        {
          path: '/my',
          name: 'my',
          component: () => import('./views/my/my.vue')
        },
      ]
      
    },
    //登录
    {
      path: '/login',
      name: 'login',
      component: () => import('./views/login/login.vue')
    },
   
  ]
})
